package com.danbay.cloud.device.api.service;

import com.danbay.cloud.device.api.dto.DeviceRegDto;
import com.danbay.framework.exception.BusinessException;
import com.danbay.framework.springnc.annotation.AutoController;
import com.danbay.framework.springnc.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 *
 * @author SJG
 * 2017/10/21
 * 设备注册接口
 */
@AutoController
@RequestMapping("/device-service/device")
public interface IDeviceRegService {

    /**
     * 设备第一次入网时，中控、水电表向云端注册。
     * @param regDto 注册参数
     * @throws BusinessException
     * @return 设备id
     */
    @RequestMapping("/register")
    String register(@RequestBody DeviceRegDto regDto) throws BusinessException;

}
